package com.example.comment_oa.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName repair_record
 */
@TableName(value ="repair_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RepairRecord implements Serializable {
    /**
     * 维修申请记录编号
     */
    @TableId(value = "REPAIR_ID", type = IdType.AUTO)
    private Integer repairId;

    /**
     * 维修申请物品编号
     */
    @TableField(value = "REPAIR_GOODS_NO")
    private String repairGoodsNo;
    /**
     * 维修申请物品名称
     */
    @TableField(value = "REPAIR_GOODS_NAME")
    private String repairGoodsName;

    /**
     * 维修申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "REPAIR_TIME")
    private Date repairTime;

    /**
     * 维修申请人
     */
    @TableField(value = "REPAIR_APPLY_PEOPLE")
    private String repairApplyPeople;

    /**
     * 申请人联系方式
     */
    @TableField(value = "REPAIR_CONTACT")
    private String repairContact;

    /**
     * 维修人
     */
    @TableField(value = "REPAIR_PEOPLE")
    private String repairPeople;

    /**
     * 物品所在部门编号
     */
    @TableField(value = "REPAIR_DEPT_ID")
    private String repairDeptId;

    /**
     * 物品所在部门
     */
    @TableField(value = "REPAIR_DEPT_NAME")
    private String repairDeptName;

    /**
     * 维修申请状态
     */
    @TableField(value = "REPAIR_STATE")
    private String repairState;

    /**
     * 维修申请备注
     */
    @TableField(value = "REPAIR_NOTER")
    private String repairNoter;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}